/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package com.paris5.master2.guitarmaster.bean;

import java.util.Collection;
import java.util.Date;

/**
 *
 * @author mourad
 */
public class EcomProduct extends EcomProductType {
    
    private Integer idProduct;
    private Date bidEndDate;
    private Date updateDate;
    private Date createDate;
    private Integer status;
    private EcomStore store;

    public Date getCreateDate() {
        return createDate;
    }

    public Integer getIdProduct() {
        return idProduct;
    }

    public EcomStore getStore() {
        return store;
    }

    public Integer getStatus() {
        return status;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public Date getBidEndDate() {
        return bidEndDate;
    }
    
    public void setBidEndDate(Date bidEndDate) {
        this.bidEndDate = bidEndDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public void setIdProduct(Integer idProduct) {
        this.idProduct = idProduct;
    }

    public void setIdStore(EcomStore store) {
        this.store = store;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final EcomProduct other = (EcomProduct) obj;
        if (this.idProduct != other.idProduct && (this.idProduct == null || !this.idProduct.equals(other.idProduct))) {
            return false;
        }
        if (this.bidEndDate != other.bidEndDate && (this.bidEndDate == null || !this.bidEndDate.equals(other.bidEndDate))) {
            return false;
        }
        if (this.updateDate != other.updateDate && (this.updateDate == null || !this.updateDate.equals(other.updateDate))) {
            return false;
        }
        if (this.createDate != other.createDate && (this.createDate == null || !this.createDate.equals(other.createDate))) {
            return false;
        }
        if (this.status != other.status && (this.status == null || !this.status.equals(other.status))) {
            return false;
        }
        if (this.store != other.store && (this.store == null || !this.store.equals(other.store))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "Product{" + "idProduct=" + idProduct + ", bidEndDate=" + bidEndDate + ", updateDate=" + updateDate + ", createDate=" + createDate + ", status=" + status + ", idStore=" + store + ", cartCollection=" + '}';
    }   
}
